cmake_minimum_required(VERSION 3.24)
project(craftinginterpreters_c C)

set(CMAKE_C_STANDARD 11)

# 自动查找所有的 .c 文件
file(GLOB SOURCE_FILES 
    "${CMAKE_CURRENT_SOURCE_DIR}/*.c"
)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})
